package com.blm.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

@Data
@Schema(description = "商品分类DTO")
public class FoodCategoryDTO {
    
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 50, message = "分类名称长度不能超过50个字符")
    @Schema(description = "分类名称", example = "热销套餐", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;
    
    @NotNull(message = "排序顺序不能为空")
    @Schema(description = "排序顺序，值越小越靠前", example = "1", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer sort;
}